package com.jackstraw.jack_base.rules.dao.database;

import com.jackstraw.jack_base.datasource.mybatis.base.dao.MyBatisDao;
import com.jackstraw.jack_base.rules.entity.po.ImportPackageKeyPo;
import com.jackstraw.jack_base.rules.entity.po.ImportPackagePoExample;
import com.jackstraw.jack_base.rules.entity.po.ImportPackagePo;

import java.util.List;

/**
 * 导包表  数据持久层
 *
 * @author zhaozhao 945514650@qq.com
 * @since version:1.0 generatorDate:2022-12-04 14:28:28
 */
public interface ImportPackageDao extends MyBatisDao<ImportPackagePo, ImportPackageKeyPo<ImportPackagePo>, ImportPackagePoExample> {

    /**
     * 通过规则Id查询导入的包
     *
     * @param ruleId
     * @return
     */
    List<ImportPackagePo> selectByRuleId(Long ruleId);

    /**
     * 通过规则组ID查询导入到包
     *
     * @param ruleGroupId
     * @return
     */
    List<ImportPackagePo> selectByRuleGroupId(Long ruleGroupId);
}